package mygui;

import java.awt.*;
import javax.swing.*;

public class StatusBar extends JPanel
{
    protected JLabel _location;
    protected JLabel _time;
    protected JLabel _speed;
    protected JLabel _action;

    public StatusBar()
    {
	setLayout(new BorderLayout());
	JPanel block = new JPanel(new GridLayout(1,2,2,2));
	_location = new JLabel("");
	//_location.setBackground(Color.black);
	//_location.setForeground(Color.black);
	//_location.setPreferredSize(new Dimension(80,15));
	_location.setToolTipText("Mouse location");
	_time = new JLabel("");
	//_time.setForeground(Color.red);
	//_location.setPreferredSize(new Dimension(100,15));
	_time.setToolTipText("Current time");
	_speed = new JLabel("");
	//_speed.setForeground(Color.green);
	_speed.setToolTipText("Speed ratio");
	//block.add(_location);
	block.add(_time);
	//block.add(_speed);
	
	_action = new JLabel(" ");
	_action.setToolTipText("Current action");
	
	add("West", block);
	add("Center", _action);
	add("East", _location);
    }

}